-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nada/feat: set up translation #55
Conversation
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }} | ||
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }} | ||
CROWDIN_PROJECT_ID: ${{ env.VITE_CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ env.VITE_CROWDIN_PERSONAL_TOKEN }} | ||
R2_ACCOUNT_ID: ${{ env.VITE_R2_ACCOUNT_ID }} | ||
R2_ACCESS_KEY_ID: ${{ env.VITE_R2_ACCESS_KEY_ID }} | ||
R2_SECRET_ACCESS_KEY: ${{ env.VITE_R2_SECRET_ACCESS_KEY }} | ||
R2_BUCKET_NAME: ${{ env.VITE_R2_BUCKET_NAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }} | |
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }} | |
CROWDIN_PROJECT_ID: ${{ env.VITE_CROWDIN_PROJECT_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ env.VITE_CROWDIN_PERSONAL_TOKEN }} | |
R2_ACCOUNT_ID: ${{ env.VITE_R2_ACCOUNT_ID }} | |
R2_ACCESS_KEY_ID: ${{ env.VITE_R2_ACCESS_KEY_ID }} | |
R2_SECRET_ACCESS_KEY: ${{ env.VITE_R2_SECRET_ACCESS_KEY }} | |
R2_BUCKET_NAME: ${{ env.VITE_R2_BUCKET_NAME }} | |
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }} | |
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }} | |
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} | |
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }} |
@nada-deriv we should add the prefix with only PROJECT_NAME
and CROWDIN_BRANCH_NAME
here, since only these 2 needs to be accessible in frontend and are not sensitive information, apart from these 2 variables all of them should be in secrets
and without the VITE_
prefix since we don't need to access those in our frontend app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh.. k.. got it
src/App.tsx
Outdated
import AppContent from './routes/AppContent'; | ||
|
||
const i18nInstance = initializeI18n({ | ||
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_CROWDIN_PROJECT_ID}/${process.env.VITE_CROWDIN_BRANCH_NAME}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_CROWDIN_PROJECT_ID}/${process.env.VITE_CROWDIN_BRANCH_NAME}`, | |
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_PROJECT_NAME}/${process.env.VITE_CROWDIN_BRANCH_NAME}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
on: | ||
push: | ||
branches: | ||
- 'main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 'main' | |
- 'master' |
Preview Link: https://nada-translation.deriv-p2p.pages.dev
|
No description provided.